<template>
  <div>
    <div class="createbox">
      <div class="warpper">
        <div class="content">
          <div class="left">
            <h1>创建歌单</h1>
          </div>
          <div class="right">
            <img src="@/assets/myt/shizi.png" alt="" />
            <img src="@/assets/myt/d.png" alt="" />
          </div>
        </div>
        <ul>
          <li v-for="(v, i) in obj" :key="i" @click="Tofaviourates">
            <img :src="v.songlisturl" alt="" />
            <p>{{ v.songlistid }}</p>
            <p>{{ v.songlisttitle }}</p>
          </li>
        </ul>
        <div class="daoru">
          <img src="@/assets/myt/daoru.png" alt="" />
          <p>一键导入外部文件</p>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
//    // http://4330et4120.qicp.vip/wySonglist/getSonglist
// getdata("/proxy/wySonglist/getSonglist",{songlistid:1}).then(res=>{
//   console.log(res.data.data)
// }
import { getdata } from "../../api/getlink";
export default {
  data() {
    return {
      obj: {},
    };
  },
  created() {
    getdata("/proxy/wySonglist/getSonglist", { songlistid: 1 }).then((ok) => {
      this.obj = ok.data.data;
    });
  },
  methods: {
    Tofaviourates() {
      this.$router.push("/fa");
    },
  },
};
</script>

<style scoped>
.createbox {
  width: 7.5rem;
  /* height: 2.4rem; */
  border-radius: 0.2rem;
  margin: 0 auto;
}
.warpper {
  width: 6.86rem;
  height: 100%;
  background-color: white;
  border-radius: 0.2rem;
  margin: 0 auto;
}
.content {
  height: 1.02rem;
  padding: 0.45rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.right {
  width: 1rem;
  display: flex;
  justify-content: space-between;
  vertical-align: middle;
}
h1 {
  color: #a0a0a0;
  font-size: 0.28rem;
}
img {
  width: 0.3rem;
  height: 0.3rem;
}
.right > img {
  width: 0.3rem;
  height: 0.3rem;
}
.daoru > img {
  width: 1.06rem;
  height: 1.06rem;
}
.daoru {
  /* height: 108rem; */
  display: flex;
  line-height: 1.08rem;
  margin-left: 0.33rem;
  font-size: 0.33rem;
}
.daoru > p {
  text-indent: 2em;
}

li {
  width: 100%;
  display: flex;
  justify-content: space-around;
}
li > img {
  width: 1.06rem;
  height: 1.06rem;
  margin: 0.2rem;
  vertical-align: middle;
  border-radius: 0.2rem;
}
p {
  line-height: 1.4rem;
}
</style>
      